Actually test our KML writer, not the reference files.
authorrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Wed, 1 Jun 2011 16:14:59 +0000 (16:14 +0000)
committerrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Wed, 1 Jun 2011 16:14:59 +0000 (16:14 +0000)
gpsbabel/testo.d/kml.test

index 219ec9f39a05be8cfd9b34c379cb8b89353a9bc6..6241307d3fc7780cf11e4a3b056d4377c1c56ca9 100644 (file)
@@ -48,7 +48,9 @@ then
       # to be legal in Earth GX 2.2.
       ./reference/track/segmented_tracks-track.kml) continue;;
     *)
-      xmllint --schema tools/kml22-schema/kml22gx.xsd --noout $f
+      tmpf=${TMPDIR}/$(basename $f)
+      gpsbabel -i kml -f $f -o kml -F $tmpf
+      xmllint --schema tools/kml22-schema/kml22gx.xsd --noout $tmpf
     esac;
   done
 else